<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.css">
    <link rel="stylesheet" href="/css/bootstrap-theme.css">
    <script src="/js/jquery-1.11.0.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</head>
<body>
测试首页
<!--基本对象-->

<div th:each="u:${user}">
    <p th:text="${u.id}">id</p>
    <p th:text="${u.username}">username</p>
</div>


<!--遍历列表对象-->
<table class="table table-bordered table-hover">
<tr  th:each="user,iterStat: ${users}">
    <td th:text="${iterStat.index}">index</td>
    <td th:text="${iterStat.count}">count</td>
    <th th:text="${user.id}">id</th>
    <td th:text="${user.username}">name</td>
 </tr>
</table>
<!--遍历整型数组-->
<div th:each="ii:${ints}">
    <p th:text="${ii}">id</p>

</div>
遍历映射对象
<table class="table table-hover table-bordered">
    <tr  th:each="item,iterStat: ${userMap}">
        <td th:text="${iterStat.index}">index</td>
        <td th:text="${iterStat.count}">count</td>
        <th th:text="${item}">id</th>

    </tr>
</table>

<p th:text="${curDate}"></p>
</body>
</html>
